<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Block extends Model
{

    protected $fillable = ['name','title','image','url','block_type_id','sort','content'];
    //广告所在的位置信息
    public function block_type()
    {
        return $this->belongsTo('App\Models\BlockType');
    }

}
